#ifndef __MY_KEY_LISTENER__
#define __MY_KEY_LISTENER__

#include <Ogre.h>
#include <OIS/OIS.h>
#include "MyUtil.h"
#include "MyListenerData.h"

using namespace Ogre;

class MyKeyListener : public OIS::KeyListener
{
public:
	MyKeyListener(MyListenerData *data);
	~MyKeyListener(void);

	bool keyPressed(const OIS::KeyEvent &kevt);
	bool keyReleased(const OIS::KeyEvent &kevt);

private:
	void moveHandler(const OIS::KeyEvent &kevt,bool isPressed = true);
	void systemHandler(const OIS::KeyEvent &kevt, bool isPressed = true);
	MyListenerData *m_pData;
};


#endif